<?php
/**
* config.php
*
* Global configuration object 
*
* @author     Blazej Zieba <b@zieba.info>
* @copyright  2007 konekto.com
* @version    CVS: $Id:$
 */


//Load and parse user config
$config = parse_ini_file("d:\\_mydata\\apps\\vg_config\\config.ini.php",TRUE);
//Configure PHP engine 
foreach ( $config["PHP"] as $key => $value )
{
    ini_set($key, $value);
}

//Before PHP configuration this was not possible
require_once "PEAR.php";

//
//User configuration
//
$data = array();
foreach ($config as $key => $value)
{
    $data = &PEAR::getStaticProperty("CONFIG_INI","$key");
    $data = $value;

}

?>
